﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class About : System.Web.UI.Page
{
    DataClassesDataContext db = new DataClassesDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
          
            int id = int.Parse(Request.QueryString["id"]);
            var about = db.Introductions.Where(c => c.IntroductionID == id).SingleOrDefault();
            if (about != null)
            {
                Literal1.Text = about.Content;
            }
        }
        catch
        {
            Response.Redirect("Default.aspx");
        }
    }
}
